package com.hz.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@ToString
@AllArgsConstructor
@NoArgsConstructor
@Data
public class MassageJsons<T> {
    private String code;    //状态码
    private String msg;     //返回消息
    private T Data;         //返回数据
    private Integer counts;//总页数
    private String xx;    //想传啥传啥吧
    public MassageJsons(String code,String msg,T Data){
        this.code=code;
        this. msg=msg;
        this.Data=Data;
    }
    public MassageJsons(String code,String msg,T Data,String xx){
        this.code=code;
        this. msg=msg;
        this.Data=Data;
        this.xx = xx;
    }
    public MassageJsons(String code,String msg,T Data,Integer counts){
        this.code=code;
        this. msg=msg;
        this.Data=Data;
        this.counts = counts;
    }
    public MassageJsons(String code,String msg){
        this.code=code;
        this. msg=msg;
    }
}
